<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>"> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>
	人员管理
</title>
	<link href="<%=basePath %>/Styles/css.css" rel="stylesheet" type="text/css" />
	<link href="<%=basePath %>/Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath %>/Scripts/jquery.js" type="text/javascript"></script>
    <script src="<%=basePath %>/Scripts/jquery.hotkeys.js" type="text/javascript"></script>
    <script src="<%=basePath %>/Scripts/jstree/jquery.jstree.js" type="text/javascript"></script>
    <script src="<%=basePath %>/Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="<%=basePath %>/Scripts/EmployeesManager.js" type="text/javascript"></script>
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
    <form method="post" action="user/selectLike.do" id="form1"> 
		<script type="text/javascript"> 
		//<![CDATA[
		    var theForm = document.forms['form1'];
		    if (!theForm) {
		        theForm = document.form1;
		    }
		    function __doPostBack(eventTarget, eventArgument) {
		        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
		            theForm.__EVENTTARGET.value = eventTarget;
		            theForm.__EVENTARGUMENT.value = eventArgument;
		            theForm.submit();
		        }
		    }
		//]]>
		    function openWin() {
		        showModalDialog("EmployeesUpdateManager.htm", "example04", "dialogWidth:850px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
		    }
		   
		</script>
    <div style="background: #EFF3FF; width: 22%; float: left; overflow-y: auto;">
        <div id="tree" class="tree" style="background: #EFF3FF;">
        </div>
    </div>
    <div style="width: 75%; float: left; border: 0px solid #82AFE8">
        <table width="100%">
            <tr>
                <td width="6%">
                                                                  账号名称	
                </td>
                <td width="13%">
                    <input name="useraccount" type="text" id="useraccount" style="width:95%;" />
                </td>
                <td width="7%">
                  	   用户名称
                </td>
                <td width="13%">
                    <input name="username" type="text" id="username" style="width:95%;" />
                </td>
            
                <td width="7%">
                                                      手机号：
                </td>
                <td width="13%">
                    <input name="usermobile" type="text" id="usermobile" style="width:95%;" />
                </td>
                <td width="13%">
                    <input style="border-style: none; border-color: inherit; border-width: 0px; background-image: url('images/search.gif'); width: 100px; height: 24px;" 
                        type="submit" value="" />
                </td>
                <td width="5%">
                    <input type="button" id="btnAdd" class="button" style="float: right" value="添加" onclick="window.location.href='user/toAddUser.do'"/>
                </td>
            </tr>
        </table>
        <div class="cxlb_2" style="width: 100%">
            <table width="120%" class="tablist">
                <thead id="tablistHer">
                    <tr>
                        <th width="10%">
                            	账号名称
                        </th>
                        <th width="10%">
                          	 	账号密码
                        </th>
                        <th width="6%">
                            	用户名称
                        </th>
                        <th width="12%">
                          		用户电话
                        </th>
                        <th width="12%">
                           		创建时间
                        </th>
                        <th width="10%">
                            	角色id
                        </th>
                        <th width="10%">
                            	操作
                        </th>
                    </tr>
                </thead>
                <tbody id="tab">
                    <c:forEach var="bean" items="${userList }">
          				
		          	    	<tr class='text-c even' role='row'>
		          	   			<td>${bean.useraccount }</td>	
			          	   		<td>${bean.userpassword }</td>
			          	   		<td>${bean.username }</td>
			          	   		<td>${bean.usermobile }</td>
			          	   		<td><fmt:formatDate value="${bean.creattime}" type="both"/></td>
			          	   		<td>${bean.roleid }</td>
			          	   		 <td width="10%">
                                    <a href="user/toUpdateUser.do?id=${bean.id }">修改</a>
                                    <a href="user/deleteUser.do?id=${bean.id }" onclick="return confirm('是否删除？')">删除</a>
                                </td>
							</tr>
		           </c:forEach>
				</tbody>
            </table>
            <script type="text/javascript">

                var Ptr = document.getElementById("tab").getElementsByTagName("tr");
                function pageLoad() {
                    for (i = 1; i < Ptr.length + 1; i++) {
                        Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
                    }
                }
                window.onload = pageLoad;
                for (var i = 0; i < Ptr.length; i++) {
                    Ptr[i].onmouseover = function () {
                        this.tmpClass = this.className;
                        this.className = "t3";

                    };
                    Ptr[i].onmouseout = function () {
                        this.className = this.tmpClass;
                    };
                }
//-->
            </script>
            
             <div style="width: 100%;">
            
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
		<div id="AspNetPager1" class="anpager" style="width:100%;text-align:left;">
		<div align="left" class="anpager" style="width:60%;float:left;">
			<a href="user/selectUserFY.do?dangqian=0&sx=0" style="margin-right:10px;">首页</a>
			<a href="user/selectUserFY.do?dangqian=${dangqian }&sx=1" style="margin-right:10px;">上一页</a>
			<span class="cpb" style="margin-right:10px;">${dangqian }</span>
			<a href="user/selectUserFY.do?dangqian=${dangqian }&sx=2" style="margin-right:10px;">下一页</a>
			<a href="user/selectUserFY.do?dangqian=-1&sx=0" style="margin-right:10px;">尾页</a>
		</div>
		<div class="anpager" style="width:40%;float:left;">
			记录总数：<font color="blue"><input type="text" name="count" id="count" value="${count }" style="text-align:center" size="3" readonly="readonly"/></font>
			 总页数：<font color="blue"><input type="text" name="count" id="count" value="${zongye }" style="text-align:center" size="3" readonly="readonly"/></font> 
			 当前页：<font color="red"><input type="text" name="count" id="count" value="${dangqian }" style="text-align:center" size="3" readonly="readonly"/></font>
		</div>
		</div>
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
 
 
        </div>
        </div>
       
    </div>
    <input type="hidden" name="hidParentUuid" id="hidParentUuid" />
    <input type="hidden" name="hidUuid" id="hidUuid" />
    <input type="hidden" name="hidCookUuid" id="hidCookUuid" value="100002" />
    <input type="hidden" id="isShow" value="0" />
    <input name="hidpanelShow" type="hidden" id="hidpanelShow" />
    <input type="hidden" id="hidorganizationUuid" />
    <input type="hidden" id="hidfromSubmit" name="hidfromSubmit" value="1" />
    <input type="hidden" id="hidfromSubmit1" name="hidfromSubmit1" />
    <span id="lblScript"><script>                             $.cookie('jstree_open', '')</script></span>
    </form>
</body>
</html>


